import request from '@/router/axios'

export function fetchEimsSaleTypeInTransitList(query) {
  return request({
    url: '/eims/saleTypeInTransit/page',
    method: 'get',
    params: query
  })
}

export function addEimsSaleTypeInTransitObj(obj) {
  return request({
    url: '/eims/saleTypeInTransit',
    method: 'post',
    data: obj
  })
}

export function getEimsSaleTypeInTransitObj(type) {
  return request({
    url: '/eims/saleTypeInTransit/getInfo/' + type,
    method: 'get'
  })
}

export function delEimsSaleTypeInTransitObj(type) {
  return request({
    url: '/eims/saleTypeInTransit/' + type,
    method: 'delete'
  })
}

export function putEimsSaleTypeInTransitObj(obj) {
  return request({
    url: '/eims/saleTypeInTransit',
    method: 'put',
    data: obj
  })
}
